/*
 * @Author: PC9527\Jack sophia2152@qq.com
 * @Date: 2023-08-10 09:13:50
 * @LastEditors: PC9527\Jack sophia2152@qq.com
 * @LastEditTime: 2023-08-10 09:41:35
 * @Description:
 */
import { BasicPageParams, BasicFetchResult } from '/@/api/model/baseModel';

// 系统日志
export type LogsPageParams = BasicPageParams & {
  pages?: string;
  path?: string;
  ip?: string;
  admin_id?: number;
  data?: string;
};

// 列表数据
export interface LogsListItem {
  id: number;
  admin_id: number;
  username: string;
  true_name: string;
  path: string;
  page: string;
  method: string;
  ip: string;
  ip_data: string;
  type: string;
  add_time: string;
}

// 系统登录日志
export type LoginLogsListParams = {
  uid?: number;
  data?: string;
  ip?: string;
  status?: number;
};

export type LoginLogsPageParams = BasicPageParams & LoginLogsListParams;

// 系统登录日志列表
export interface LoginLogsListItem {
  id: number;
  uid: string;
  login_time: string;
  ip: string;
  ip_data: string;
  status: number;
}

/**
 * @description: Request list return value
 */
export type LogsListGetResultModel = BasicFetchResult<LogsListItem>;
export type LoginLogsListGetResultModel = BasicFetchResult<LoginLogsListItem>;
